#ifndef __DRIVER_DHT11_H__
#define __DRIVER_DHT11_H__

#include "main.h"

#define DHT11_PIN           GPIO_PIN_15
#define DHT11_PORT          GPIOA

#define DHT11_H      HAL_GPIO_WritePin(DHT11_PORT, DHT11_PIN, GPIO_PIN_SET)
#define DHT11_L      HAL_GPIO_WritePin(DHT11_PORT, DHT11_PIN, GPIO_PIN_RESET)
#define DHT11_IN     HAL_GPIO_ReadPin(DHT11_PORT, DHT11_PIN)

void DHT11_GPIO_Init(void);
void DHT11_TIM_Init(void);
int DHT11_Read(unsigned int *temperature, unsigned int *humidity);


#endif
